package com.ssy.lingxi.platform.manage.model.request.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 内容能力-公告管理 - 新增/修改 - 请求实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/17
 */
@Data
public class MemberNoticeRequest {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空", groups = {MemberNoticeRequest.Update.class})
    private Long id;

    @ApiModelProperty(value = "标题")
    @NotEmpty(message = "标题不能为空", groups = {MemberNoticeRequest.Add.class, MemberNoticeRequest.Update.class})
    private String title;

    @ApiModelProperty(value = "栏目 1-会员首页公告 2-注册须知 3-入库协议")
    @NotNull(message = "栏目不能为空", groups = {MemberNoticeRequest.Add.class, MemberNoticeRequest.Update.class})
    private Integer columnType;

    @ApiModelProperty(value = "是否置顶 0-否 1-是")
    private Integer top;

    @ApiModelProperty(value = "内容")
    @NotEmpty(message = "内容不能为空", groups = {MemberNoticeRequest.Add.class, MemberNoticeRequest.Update.class})
    private String content;

    public interface Add {
    }

    public interface Update {
    }
}
